package com.siwei.mes.mapper.experiment;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.experiment.ExperimentCheckWaybill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 快检/批检与试验台账和运单的关系(ExperimentCheckWaybill)表数据库访问层
 *
 * @author makejava
 * @since 2024-06-01 22:48:09
 */
public interface ExperimentCheckWaybillMapper extends BaseMapper<ExperimentCheckWaybill> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentCheckWaybill> getList(ExperimentCheckWaybill entity);

    int deleteByCreate(ExperimentCheckWaybill entity);

    void deleteByExperimentId(@Param("experimentId") Long experimentId);

    /**
     * 获取每个试验委托第一车的运单时间
     *
     * @param entity
     * @return
     */
    List<ExperimentCheckWaybill> getFirstRecord(ExperimentCheckWaybill entity);

    int count(ExperimentCheckWaybill entity);
}
